const express = require('express')
const router = express.Router()
const path = require('path')

let photo = '../public/002.jpeg'
console.log(__dirname)
router.use('/download', (req, res) => {
  let photoPath = __dirname + 
  res.download(photo)
})

module.exports = router